package org.wang.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.wang.util.AjaxResult;

@FeignClient(value = "HRM-COMMON", fallbackFactory = SmsClientFallbackFactory.class )//服务提供
@RequestMapping("/sms")
public interface SmsClient {

    //feign如果要传递Map list等需要特殊处理
    @PostMapping
    AjaxResult send(@RequestParam(value = "params", required = true) String params);
}
